package mya.mes.mdc.mongodb;

import mya.mes.mdc.local.mongodb.MongoDbService;

public class Mongo {

    private static Mongo _instance = new Mongo();

    private MongoDbService dbService;

    private Mongo() {
        dbService = new MongoDbServiceImpl();
    }

    public static Mongo getInstance() {
        return _instance;
    }

    public MongoDbService getMongoDbService() {
        return dbService;
    }

    public void shutdown() throws Exception {

        DbManger.getInstance().shutdown();
    }
}
